for file in `find -name "*.[ch]" `
do
    echo converting $file
    iconv -f UTF-8 -t GB18030 $file > $file.new && mv $file.new $file
done
